package com.liu.service.impl;

import com.liu.entity.HosDep;
import com.liu.mapper.HosDepMapper;
import com.liu.service.HosDepService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * (HosDep)表服务实现类
 *
 * @author makejava
 * @since 2023-03-06 20:56:37
 */
@Service("hosDepServiceImpl")
@Transactional
public class HosDepServiceImpl implements HosDepService {
    @Resource
    private HosDepMapper hosDepMapper;


    @Override
    public HosDep queryById(Integer id) {
        return this.hosDepMapper.queryById(id);
    }

    @Override
    public List<HosDep> findAll() {
        return this.hosDepMapper.findAll();
    }

    @Override
    public List<HosDep> queryAllByLimit(Integer pageNum, Integer pageSize) {
        return this.hosDepMapper.queryAllByLimit(pageNum, pageSize);
    }

    @Override
    public long count() {
        return this.hosDepMapper.count();
    }

    @Override
    public int insert(HosDep hosDep) {
        return this.hosDepMapper.insert(hosDep);
    }

    @Override
    public int insertBatch(List<HosDep> entities) {
        return this.hosDepMapper.insertBatch(entities);
    }

    @Override
    public int update(HosDep hosDep) {
        return this.hosDepMapper.update(hosDep);
    }

    @Override
    public int deleteById(Integer id) {
        return this.hosDepMapper.deleteById(id);
    }

    @Override
    public int deleteByIds(List<Integer> ids) {
        return this.hosDepMapper.deleteByIds(ids);
    }
}
